package com.example.agrigreennewssys.dao;

import com.example.agrigreennewssys.entity.ArticleLike;
import com.example.agrigreennewssys.entity.CommentLike;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CommentLikeMapper {
    int insertCommentLike(CommentLike commentLike);
    int updateCommentLikeStatus(@Param("commentId") Long commentId, @Param("userId") Long userId, @Param("status") Integer status);
    Integer getCommentLikeStatus(@Param("commentId") Long commentId, @Param("userId") Long userId);

    List<CommentLike> selectCommentLikeList(@Param("nickName")String nickName,@Param("articleTitle")String articleTitle,@Param("content")String content);
}